package com.alibaba.hello.validate;

import com.alibaba.roma.core.form.validation.ValidatorRule;

public class LevelValidator implements ValidatorRule<Integer> {
	public boolean validate(Integer fieldValue) {
		if (fieldValue == null || fieldValue <= 5 || fieldValue >= 20)
			return false;
		return true;
	}
}